<div class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
 <?= form_open('user/tasks/add_worksheet/'.$subtasks['id'].'/'.$tasks_id)?>
  <div class="modal-header">
  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
    <h3 id="myModalLabel">Add subtask to worksheet</h3>
  </div>
  <div class="modal-body"> 
   <input class="span5" type="hidden" value="<?php echo $project['id']?>" name="project_id" />
  <label>Project Name:</label> 
  <input class="span5" type="text" value="<?php echo $project['name']?>" name="project_name" readonly="readonly"/>
  <label>Tasks :</label>
  <input class="span5" type="text" value="<?php echo $project['title']?>" name="tasks_title" readonly="readonly"/>
  	<label>Subtask description :</label>
	<textarea class="span5"  name="desc"><?= $subtasks['desc']?></textarea>
	<label>Time Taken</label>
	<input type="text" class="span1" placeholder="hr" name="hour" value="00" /> : <input type="text" class="span1" name="min" placeholder="min" value="00" /> : <input name="sec" type="text" class="span1" placeholder="sec" value="00" />  
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    <button class="btn btn-info" type="submit">Save changes</button>
  </form>
  </div>
</div>